﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            double c = 0;
            double[] a = new double[5];
            for (int i = 0; i < a.Length; i++)
            {
                Console.WriteLine("输入第"+(i+1)+"个学生的成绩");
                a[i] = double.Parse(Console.ReadLine());
            }
            foreach (var b in a)
            {
                c = c + b;
            }
            Console.WriteLine("总成绩为："+c);
            Console.WriteLine("平均成绩为："+(c/5));
        }
    }
}
